package com.huangwei.service.impl;

import com.huangwei.dao.OrderStateDao;
import com.huangwei.model.OrderState;
import com.huangwei.service.OrderStateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderStateServiceImpl implements OrderStateService {
    @Resource
    OrderStateDao orderStateDao;
    @Override
    public List<OrderState> getAllOrderStates() {
        try {
            return orderStateDao.queryAll();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
